# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=usbmuxd
pkgver=1.1.0
pkgrel=0
pkgdesc="Socket Daemon to multiplex connections from iOS"
url="https://github.com/libimobiledevice/usbmuxd"
arch="all"
makedepends="automake autoconf libtool libusb-dev libplist-dev
	libimobiledevice-dev"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/libimobiledevice/usbmuxd/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--without-systemd
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="c9735ca7294927a6ec42edbd948e6736e366e0b9fac90c109f3066dfe71b2aeb0272ce2a33784be30c4188f0a3a65f29e4515ae041ed7cf01d9d95ea751c2284  usbmuxd-1.1.0.tar.gz"
